// 获取轮播图数据的API端点
import { apiRequest, handleApiError, cleanImageUrl } from '../../utils/apiClient';

export default defineEventHandler(async (event) => {
  try {
    //如何获取newsid 
    const query = getQuery(event)
    const newsId = query.newsid
    return await apiRequest("news.information.detail", { newsid: newsId }, 'post');
  } catch (error) {
    return handleApiError(error, []);
  }
});